<?php
class AdModel extends AdvModel
{
	// 自动填充规则
	var $_auto = array(
		array("status","0",1,"string"),
		array("orders","0",3,"string"),
	);

	// 自动校验规则
	var $_validate = array(
		array('adname','require','广告名称不能为空',0,'',3),
		array('adurl','require','广告链接不能为空',0,'',3),
		array('adimg','require','广告图片不能为空',0,'',1),

	);

}
?>